package com.method;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestCommandManager {
	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("ApplicationContext.xml");
		//CommandManager.class对应的是CommandManager.java类
		CommandManager manager = ctx.getBean("commandManager", CommandManager.class);
		System.out.println("第一执行process,Command的地址是:" + manager.process());
		System.out.println("第二执行process,Command的地址是:" + manager.process());
	}
}


